package cn.hml.org.query;

import lombok.Data;

@Data
public class DepartmentQuery {
    /**
     * 当前页
     */
    private Integer pageNum = 1;
    /**
     * 每页数据条数
     */
    private Integer pageSize = 10;

    public Integer getPageNum(){
        return (this.pageNum - 1) * this.pageSize;
    }
}
